﻿using Furion.EventBus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Htx.Fur.Web.Core.EventBus
{
    public class UserChangeSubscribeHandler : ISubscribeHandler
    {
        [SubscribeMessage("create:user")]
        public void CreateUser(string eventId, object payload)
        {
            Console.WriteLine($"{eventId}，{payload}");
        }

        [SubscribeMessage("delete:user")]
        [SubscribeMessage("remove:user")]
        public void DeleteUser(string eventId, object payload)
        {
            Console.WriteLine($"{eventId}，{payload}");
        }

        [SubscribeMessage("update:user")]
        public void UpdateUser(string eventId, object payload)
        {
            Console.WriteLine($"{eventId}，{payload}");
        }
    }
}
